package com.lagou.mall.esflow.server;

/**
 * @Author xiazhenyu
 * @Description titan 框架异常
 * @Date 3:58 下午 2021/2/4
 **/
public class ESFlowSystemException extends RuntimeException {


    public ESFlowSystemException(String message, Throwable throwable) {
        super(message, throwable);
    }


    public ESFlowSystemException(String message) {
        super(message);
    }


    public static ESFlowSystemException error(String message, Throwable throwable, Object... args) {
        return new ESFlowSystemException(String.format(message, args), throwable);
    }


    public static ESFlowSystemException error(String message, Object... args) {
        return new ESFlowSystemException(String.format(message, args));
    }

}
